// 构造单例对象
export class GlobalContext {
  public  static loadGlobalThis(name: string) {
    return globalThis[name]
  }

  public static storeGlobalThis(name: string, obj: Object) {
    globalThis[name] = obj
  }
}

export class GlobalContextConstants {
  static readonly TEXT_INPUT_ARRAY = "textInputArray";
  static readonly TEXT_INPUT_INDEX_MAP = "textInputIndexMap";
  static readonly TEXT_AREA_ARRAY = "textAreaArray";
  static readonly TEXT_AREA_INDEX_MAP = "textAreaIndexMap";
  static readonly WORKER = "Worker";
  static readonly WEB_VIEW_ARRAY = "WebViewArray";
  static readonly WEB_VIEW_INDEX_MAP = "WebViewIndexMap";
  static readonly VIDEO_PLAYER_ARRAY = "VideoPlayerArray";
  static readonly VIDEO_PLAYER_INDEX_MAP = "VideoPlayerIndexMap";
  static readonly DIALOG_CONTROLLER = "dialogController";
  static readonly SHOW_MESSAGE = "showMessage";

  static readonly AVOID_AREA = "avoidArea";
  static readonly ABILITY_CONTEXT = "abilityContext";
  static readonly ABILITY_WANT = "abilityWant";
  static readonly WEB_RESULT= "webResult";

  static readonly AAID= "aaid";
}